package com.nulldev.util.networking.async2.tcp.client.exceptions;

import com.nulldev.util.networking.async2.tcp.client.connectors.TCPConnector;

public class ConnectorDisconnectedException extends Exception {

	private static final long serialVersionUID = 1895757373412342263L;
	private final TCPConnector fConnector;

	public ConnectorDisconnectedException(TCPConnector connector) {
		super("Connector is disconnected");
		fConnector = connector;
	}

	/**
	 * Returns the disconnected connector.
	 *
	 * @return the disconnected connector.
	 */
	public TCPConnector getConnectorInstance() {
		return fConnector;
	}
}
